<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span>
                            <vc:i18n name="修改" namespace="editOwnerSettledApply"></vc:i18n>
                        </span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-white " v-on:click="vc.goBack()">
                            <vc:i18n name="返回"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='业主' namespace='editOwnerSettledApply'></vc:i18n>
                                    </span></label>
                                <div class="col-sm-8">
                                    <input v-model="editOwnerSettledApplyInfo.ownerName" disabled type="text"
                                        :placeholder="vc.i18n('必填，请填写业主','editOwnerSettledApply')" class="form-control">
                                </div>
                                <div class="col-sm-2">
                                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_selectOwner()">
                                        选择
                                    </button>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label"><span>
                                        <vc:i18n name='说明' namespace='editOwnerSettledApply'></vc:i18n>
                                    </span></label>
                                <div class="col-sm-8">
                                    <textarea v-model="editOwnerSettledApplyInfo.remark"
                                        :placeholder="vc.i18n('必填，请填写说明','editOwnerSettledApply')" class="form-control">
                                        </textarea>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="入驻房屋" namespace="editOwnerSettledApply"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_selectRoom()">
                            选择房屋
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px"
                        data-page-size="10">
                        <thead>
                            <tr>
                                <!-- <th><span><vc:i18n name="房屋" namespace="editOwnerSettledApply"></vc:i18n></span>ID</th> -->
                                <th data-hide="phone" class="text-center">
                                    <span>
                                        <vc:i18n name="房屋" namespace="editOwnerSettledApply"></vc:i18n>
                                    </span>
                                </th>
                                <th data-hide="phone" class="text-center">
                                    <vc:i18n name="起租时间" namespace="editOwnerSettledApply"></vc:i18n>
                                </th>
                                <th data-hide="phone" class="text-center">
                                    <vc:i18n name="截止时间" namespace="editOwnerSettledApply"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="操作" namespace="editOwnerSettledApply"></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="room in editOwnerSettledApplyInfo.rooms">
                                <td class="text-center" v-if="room.roomName">
                                    {{room.roomName}}
                                </td>
                                <td class="text-center" v-else>
                                    {{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}
                                </td>
                                <td class="text-center" >
                                    <input v-model="room.startTime"  type="text"
                                        :placeholder="vc.i18n('必填，房屋起租时间','editOwnerSettledApply')" class="form-control" :class="'startTime_'+room.roomId">
                                </td>
                                <td class="text-center" >
                                    <input v-model="room.endTime"  type="text"
                                        :placeholder="vc.i18n('必填，房屋截止时间','editOwnerSettledApply')" class="form-control" :class="'endTime_'+room.roomId">
                                </td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs" v-on:click="_openDelRoomModel(room)"><span>
                                                <vc:i18n name="删除" namespace="editOwnerSettledApply"></vc:i18n>
                                            </span></button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="margin-top">
        <button class="btn btn-primary float-right" type="button" v-on:click="_editOwnerSettledApply()"><i
                class="fa fa-check"></i>&nbsp;
            <span>
                <vc:i18n name="保存"></vc:i18n>
            </span>
        </button>
        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">
            <span>
                <vc:i18n name="取消"></vc:i18n>
            </span>
        </button>
    </div>
    <vc:create path="property/searchOwner" emitChooseOwner="editOwnerSettledApply" emitLoadData="editOwnerSettledApply">
    </vc:create>
</div>